import request from '@/utils/request'

//  获取员工简单列表
export const reqGetEmployeeSimple = () => request({
  url: '/sys/user/simple'
})

// 获取员工列表

export const reqGetEmployeeList = (page = 1, size = 10) => request({
  method: 'get',
  url: '/sys/user',
  params: {
    page,
    size
  }
})

/**
 * 删除员工 ()
 */
export function reqDelEmployee(id) {
  return request({
    method: 'delete',
    url: `/sys/user/${id}`
  })
}

/**
 * 新增员工
 * @param {*} data
 * @returns
 */
export const reqAddEmployee = data => request({
  method: 'POST',
  url: '/sys/user',
  data
})
